<?php

class FrontendCompanyForm extends CompanyForm
{

    public function configure()
    {
        parent::configure();
        unset($this['user_id'],$this['statues']);
    }

    public function doUpdateObject($values)
    {
        parent::doUpdateObject($values);
        $this->getObject()->setUserId($this->getOption('maxUser')->getUserDataByIndex('id'));
    }

}